package ltd.dujiabao.performance.monitor.pm.storage.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;
import ltd.dujiabao.performance.monitor.pm.domain.Performance;
import ltd.dujiabao.performance.monitor.pm.storage.PerformanceStorage;

/**
 * @author : DuJiabao
 * @Project : performance_monitor
 * @Time : 2022/2/27 21:25
 * @Desc : 监听事件，并且将其保存到SQL数据库
 */
@Slf4j
@Component
public class SqlStorage implements PerformanceStorage {
    @Override
    public void store(List<Performance> performances) {
        //TODO: 保存数据
        log.info("performances : {}", performances);
    }
}
